<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%
        String basePath=request.getContextPath();
        pageContext.setAttribute("base",basePath);
        //${pageContext.request.contextPath}==${base}
    %>
</head>
<body>
<div>
    <form action="${base}/login" method="post">
        用户名：<input name="userName"> <br>
        密码：<input name="userPwd"> <br>
        <button type="submit">登录</button>
    </form>
</div>
</body>
</html>
